
import Service from '../../core/baseService';

export default class InfoService extends Service {


  constructor(ctx) {
    super(ctx);
    this.model = ctx.sassmodel.Activity;
  }

  async all() {
    const list = await this.model.findAll({ limit: 20 });
    return { list };
  }

  async findById(id: number) {
    return await this.model.findByPk(id);
  }
}
